/**
 * 
 */
package com.googlecode.dynargs.model.type;

import java.util.List;

/**
 * @author Federico De Faveri defaveri@gmail.com
 *
 */
public class EnumerationType extends AbstractType {
	
	protected List<Object> constants;
	
	public EnumerationType(String id, List<Object> constants)
	{
		super(id, MetaType.ENUMERATION);
		this.constants = constants;
	}

	/**
	 * @return the values
	 */
	public List<Object> getConstants() {
		return constants;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("EnumerationType [id=");
		builder.append(id);
		builder.append(", constants=");
		builder.append(constants);
		builder.append("]");
		return builder.toString();
	}
}
